package com.kavin.user.controller;

import com.kavin.user.feign.order.OrderInterface;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @ClassName UserController
 * @Description TODO
 * @Author kavin
 * @Date 2022/4/28 15:34
 * @Version 1.0
 */
@RestController
@RequestMapping("/user/")
public class UserController {


    @Resource
    OrderInterface orderInterface;

    @GetMapping("query")
    public String query(){
        String result = orderInterface.queryOrder();
        return result;
    }
}
